package com.sc.springboot.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author romeo
 * @since 2025-09-23 04:31:04
 */
@Getter
@Setter
@TableName("goods")
public class Goods {

    @TableId(value = "good_id", type = IdType.AUTO)
    private Integer goodId;

    /**
     * 商品名称
     */
    @TableField("name")
    private String name;

    /**
     * 售价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 商品缩略图URL
     */
    @TableField("smallimg")
    private String smallimg;

    /**
     * 商品轮播图片URL（多图以逗号分隔）
     */
    @TableField("images")
    private String images;

    /**
     * 详细描述
     */
    @TableField("description")
    private String description;

    /**
     * 库存
     */
    @TableField("stock")
    private Integer stock;

    /**
     * 分类ID
     */
    @TableField("category_id")
    private Integer categoryId;

    /**
     * 销量
     */
    @TableField("sales")
    private Integer sales;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 商品原价
     */
    @TableField("ori_price")
    private BigDecimal oriPrice;

    /**
     * 商品星级
     */
    @TableField("rating")
    private Double rating;

}
